﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Blog.Models.SettingModel>" %>
<%@ Import Namespace="Blog.Models"%>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Index
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<% using (Html.BeginForm("Index", "Setting", FormMethod.Post, new { enctype = "multipart/form-data", name = "frm" })) {%>
        <%= Html.ValidationSummary(true) %>

        <fieldset>
            <legend>Fields</legend>
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Title) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Title)%>
                <%= Html.ValidationMessageFor(model => model.Title)%>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Status) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Status)%>
                <%= Html.ValidationMessageFor(model => model.Status)%>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.Footer) %>
            </div>
            <div class="editor-field">
                <%= Html.TextBoxFor(model => model.Footer)%>
                <%= Html.ValidationMessageFor(model => model.Footer)%>
            </div>
            
            <div class="editor-label">
                <%= Html.LabelFor(model => model.CatalogAdd) %>
            </div>
            <div class="editor-field">
                <%= Html.DropDownListFor(model => model.CatalogAdd, (IEnumerable<SelectListItem>)ViewData["createdById"])%>
                <%= Html.ValidationMessageFor(model => model.CatalogAdd)%>
            </div>
            
             <div class="editor-label">
                <%= Html.LabelFor(model => model.CatalogDelete) %>
            </div>
            <div class="editor-field">
                <%= Html.DropDownListFor(model => model.CatalogDelete, (IEnumerable<SelectListItem>)ViewData["createdById"])%>
                <%= Html.ValidationMessageFor(model => model.CatalogDelete)%>
            </div>
            <input id="File1"name="fileUpload" type="file" />
             <%= Html.ValidationMessage("anh")%>
             <p>
                <input type="submit" name="btnthem"value="send" />
            </p>
        </fieldset>

    <% } %>
</asp:Content>
